﻿using System.Collections.Generic;
using UnityEngine;

namespace WentStateMachine
{
    public class GlobalParamsContainer : MonoBehaviour
    {
        private Dictionary<string, object> GlobalParams = new Dictionary<string, object>();

        public object GetGlobalParam(string name)
        {
            return GlobalParams[name];
        }

        public void SetGlobalParam(string name, object param)
        {
            if (GlobalParams.ContainsKey(name))
                GlobalParams[name] = param;
            else
                GlobalParams.Add(name, param);
        }
    }
}
